import random


def get_userNameAndPassword():
    usable_name_char = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()_+=-><:}{?/"  # 可作为用户名的字符
    e_user_name = []  # 定义一个临时List变量,使用list.append添加字符
    for i in range(8):
        e_user_name.append(random.choice(usable_name_char))
    user_name = ''.join(e_user_name)
    return user_name
